<!--获取select相关属性-->
<!--需要jq.js支持-->
<html>
	<head>
		<title>get_select</title>
		<script type="text/javascript" src="jq/jquery.js"></script>
	</head>
	<body>
		<select name="hehe" id="select_id">
			<option value="111">aaa</option>
			<option value="222">bbb</option>
			<option value="333">ccc</option>
			<option value="444">ddd</option>
			<option value="555">eee</option>
		</select>
	</body>
	<script type="text/javascript">
		$("#select_id").change(function(){
			var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text 
			var checkValue=$("#select_id").val(); //获取Select选择的Value 
			var checkIndex=$("#select_id ").get(0).selectedIndex; //获取Select选择的索引值 
			var maxIndex=$("#select_id option:last").get(0).selectedIndex; //获取Select最大的索引值 
			console.log(checkText);
			console.log(checkValue);
			console.log(checkIndex);
			console.log(maxIndex);
		})
	</script>
</html>